/*
 * @Author: yao
 * @Date: 2024-11-11 18:42:54
 * @LastEditTime: 2024-11-19 15:40:02
 * @LastEditors: yao
 * @Description:
 * @FilePath: \jdev-web\src\router\constant-routes.ts
 */
import BaseLayout from "@/Layouts/BaseLayout.vue";
const constantRoutes: any = [
  {
    path: "/",
    component: BaseLayout,
    children: [
      {
        path: "/",
        name: "dashboard",
        title: "主页",
        component: () => import("@/views/Dashboard/index.vue"),
      },
    ],
  },
  {
    path: "/login",
    name: "login",
    component: () => import("@/Layouts/Login.vue"),
  },
  {
    path: "/about",
    name: "about",
    // route level code-splitting
    // this generates a separate chunk (About.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import("@/views/System/About.vue"),
  },
  {
    path: "/404",
    name: "404",
    component: () => import("@/views/System/404.vue"),
  },
  {
    path: "/:pathMatch(.*)",
    component: () => import("@/views/System/404.vue"),
  },
];

export default constantRoutes;
